home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.3 / GetJustify.3 < prev    next >
Text File  |  1995-07-25  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4.      TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333))))             TTTTkkkk (((( ))))              TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           Tk_GetJustify, Tk_NameOfJustify - translate between  strings
  12.           and justification styles
  13.  
  14.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  15.           ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  16.  
  17.           Tk_Justify
  18.           TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((_i_n_t_e_r_p, _s_t_r_i_n_g, _j_u_s_t_i_f_y_P_t_r))))
  19.  
  20.           char *
  21.           TTTTkkkk____NNNNaaaammmmeeeeOOOOffffJJJJuuuussssttttiiiiffffyyyy((((_j_u_s_t_i_f_y))))
  22.  
  23.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  24.           Tcl_Interp   *_i_n_t_e_r_p       (in)      Interpreter to use  for
  25.                                                error reporting.
  26.  
  27.           char         *_s_t_r_i_n_g       (in)      String containing  name
  28.                                                of  justification style
  29.                                                (``left'',   ``right'',
  30.                                                ``center'',          or
  31.                                                ``fill'').
  32.  
  33.           int          *_j_u_s_t_i_f_y_P_t_r   (out)     Pointer to location  in
  34.                                                which  to store justify
  35.                                                value corresponding  to
  36.                                                _s_t_r_i_n_g.
  37.  
  38.           Tk_Justify   _j_u_s_t_i_f_y       (in)      Justification     style
  39.                                                (one   of   the  values
  40.                                                listed below).
  41.      _________________________________________________________________
  42.  
  43.  
  44.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  45.           TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy  places  in  *_j_u_s_t_i_f_y_P_t_r  the  justify   value
  46.           corresponding  to  _s_t_r_i_n_g.   This  value  will be one of the
  47.           following:
  48.  
  49.           TTTTKKKK____JJJJUUUUSSSSTTTTIIIIFFFFYYYY____LLLLEEEEFFFFTTTT
  50.                Means that the text on each line should  start  at  the
  51.                left edge of the line;  as a result, the right edges of
  52.                lines may be ragged.
  53.  
  54.           TTTTKKKK____JJJJUUUUSSSSTTTTIIIIFFFFYYYY____RRRRIIIIGGGGHHHHTTTT
  55.                Means that the text on each  line  should  end  at  the
  56.                right edge of the line;  as a result, the left edges of
  57.                lines may be ragged.
  58.  
  59.           TTTTKKKK____JJJJUUUUSSSSTTTTIIIIFFFFYYYY____CCCCEEEENNNNTTTTEEEERRRR
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/23/95)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333))))             TTTTkkkk (((( ))))              TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333))))
  71.  
  72.  
  73.  
  74.                Means that the text on each line  should  be  centered;
  75.                as a result, both the left and right edges of lines may
  76.                be ragged.
  77.  
  78.           TTTTKKKK____JJJJUUUUSSSSTTTTIIIIFFFFYYYY____FFFFIIIILLLLLLLL
  79.                Means that the text on each line should  start  at  the
  80.                left  edge  of the line and end at the right edge, with
  81.                the sizes of the spaces in the line  adjusted  to  make
  82.                this work.
  83.  
  84.           Under normal circumstances the return value  is  TTTTCCCCLLLL____OOOOKKKK  and
  85.           _i_n_t_e_r_p  is  unused.   If  _s_t_r_i_n_g  doesn't  contain  a  valid
  86.           justification style or  an  abbreviation  of  one  of  these
  87.           names,  then  an  error message is stored in _i_n_t_e_r_p->_r_e_s_u_l_t,
  88.           TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR is returned, and *_j_u_s_t_i_f_y_P_t_r is unmodified.
  89.  
  90.           TTTTkkkk____NNNNaaaammmmeeeeOOOOffffJJJJuuuussssttttiiiiffffyyyy is the logical  inverse  of  TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy.
  91.           Given  a  justify  value  it  returns a statically-allocated
  92.           string corresponding to _j_u_s_t_i_f_y.  If _j_u_s_t_i_f_y isn't  a  legal
  93.           justify  value,  then  ``unknown  justification  style''  is
  94.           returned.
  95.  
  96.  
  97.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  98.           center, fill, justification, string
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 7/23/95)
  130.  
  131.  
  132.  
  133.